package com.jiyongjun.component.exception;

/**
 * <h2>业务异常</h2>
 * <h3>描述：请求方存在问题而导致的异常，如参数非法异常，业务规则校验不通过异常</h3>
 *
 * <p>此类异常一般重试也会失败，因此也可简单理解为不可重试异常。</p>
 *
 * @author yongjun.jyj
 * @since 2022/6/13 15:15
 */
public class BizException extends AbstractRuntimeException{
    public BizException(String msgInfo) {
        super(msgInfo);
    }

    public BizException(String msgCode, String msgInfo) {
        super(msgCode, msgInfo);
    }

    public BizException(String msgCode, String msgInfo, Object payload) {
        super(msgCode, msgInfo, payload);
    }

    public BizException(String msgCode, String msgInfo, Throwable cause) {
        super(msgCode, msgInfo, cause);
    }

    public BizException(String msgCode, String msgInfo, Throwable cause, Object payload) {
        super(msgCode, msgInfo, cause, payload);
    }

}
